package com.yanqu.road.entity.log.summergames;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_summer_games_exchange", autoSave = true, dataUpload = true, eventName = "summeet_exchange", desc = "交换")
public class LogSummerGamesExchange extends BaseLogEntity {

    @FieldTypeAnnotation(desc = "活动id", dataAttribute = "activityid")
    private int activityId;

    @FieldTypeAnnotation(desc = "玩家id")
    private long userId;

    @FieldTypeAnnotation(desc = "交换id")
    private long excId;

    @FieldTypeAnnotation(desc = "操作类型：0 发起交换；1 拒绝交换  2 同意交换  3 取消交易", dataAttribute = "summeet_exctype")
    private int excType;

    @FieldTypeAnnotation(desc = "对方玩家id", dataAttribute = "summeet_excid")
    private long appUserId;

    @FieldTypeAnnotation(desc = "玩家奖牌id", dataAttribute = "summeet_excmy")
    private int myMedals;

    @FieldTypeAnnotation(desc = "对方奖牌id", dataAttribute = "summeet_excother")
    private int otherMedals;

    @FieldTypeAnnotation(desc = "类型：0跨服，1商会，2指定玩家")
    private int applyType;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogSummerGamesExchange(int activityId, long userId, long excId, int excType, long appUserId, int myMedals, int otherMedals, int applyType) {
        this.activityId = activityId;
        this.userId = userId;
        this.excId = excId;
        this.excType = excType;
        this.appUserId = appUserId;
        this.myMedals = myMedals;
        this.otherMedals = otherMedals;
        this.applyType = applyType;
        this.logTime = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getExcId() {
        return excId;
    }

    public void setExcId(long excId) {
        this.excId = excId;
    }

    public int getExcType() {
        return excType;
    }

    public void setExcType(int excType) {
        this.excType = excType;
    }

    public long getAppUserId() {
        return appUserId;
    }

    public void setAppUserId(long appUserId) {
        this.appUserId = appUserId;
    }

    public int getMyMedals() {
        return myMedals;
    }

    public void setMyMedals(int myMedals) {
        this.myMedals = myMedals;
    }

    public int getOtherMedals() {
        return otherMedals;
    }

    public void setOtherMedals(int otherMedals) {
        this.otherMedals = otherMedals;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    public int getApplyType() {
        return applyType;
    }

    public void setApplyType(int applyType) {
        this.applyType = applyType;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
